/*
 * $Id$
 */
package py.windmill.action;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author myang
 */
public class ValidationErrors {
    private List<ValidationError> _errors = new ArrayList();

    public ValidationErrors put(final String name, final String message) {
        _errors.add(new ValidationError(name, message));
        return this;
    }

    public List<ValidationError> getErrors() {
        return _errors;
    }

    public boolean isEmpty() {
        return _errors.isEmpty();
    }
}
